<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@include file="/WEB-INF/pages/common_.jsp" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>XX学生管理系统</title>
 <style type="text/css">
<!--
*{overflow:hidden; font-size:9pt;}
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-image: url(images/bg.gif);
	background-repeat: repeat-x;
}
-->
</style>   
	<script type="text/javascript">
	 $(function(){
	 	$("#submitBtn").click(function(){

	 		if($.trim($("#userName").val())==""){
	 			//UI.msg.info("请填写用户名!");
	 			UI.dlg.error("请填写用户名!");
	 			return;
	 		}
	 		if($.trim($("#password").val())==""){
	 			UI.msg.info("请填写密码!");
	 			return;
	 		}
	 		$("#loginForm").submit();
	 	});
	
	 });
	
	</script>

  </head>
  
 <body>
<sms:pageLoading>
 <form method="post" action="${pageContext.request.contextPath}/com/stranger/index/indexAction_login.action" id="loginForm" name="loginForm" >
<table width="100%"  height="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="561" style="background:url(images/lbg.gif)"><table width="940" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td height="238" style="background:url(images/login01.jpg)">&nbsp;</td>
          </tr>
          <tr>
            <td height="190"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="208" height="190" style="background:url(images/login02.jpg)">&nbsp;</td>
                <td width="518" style="background:url(images/login03.jpg)"><table width="320" border="0" align="center" cellpadding="0" cellspacing="0">
                  <tr>
                   
                    <td width="242" colspan="3" align="center">
                    <input type="radio" name="user.role" value="1" checked="checked"/>学生
                    <input type="radio" name="user.role" value="2"/>教师
                    </td>
                  </tr>
                  <tr>
                    <td width="40" height="50"><img src="images/user.gif" width="30" height="30"></td>
                    <td width="38" height="50">用户</td>
                    <td width="242" height="50"><input type="text" name="user.userName" id="userName" style="width:164px; height:32px; line-height:34px; background:url(images/inputbg.gif) repeat-x; border:solid 1px #d1d1d1; font-size:9pt; font-family:Verdana, Geneva, sans-serif;"></td>
                  </tr>
                  <tr>
                    <td height="50"><img src="images/password.gif" width="28" height="32"></td>
                    <td height="50">密码</td>
                    <td height="50"><input type="password" name="user.password" id="password" style="width:164px; height:32px; line-height:34px; background:url(images/inputbg.gif) repeat-x; border:solid 1px #d1d1d1; font-size:9pt; "></td>
                  </tr>
                  <tr>
                    <td height="40">&nbsp;</td>
                    <td height="40">&nbsp;</td>
                    <td height="60"><img id="submitBtn" src="images/login.gif" style="cursor: pointer;" width="95" height="34"></td>
                  </tr>
                </table></td>
                <td width="214" style="background:url(images/login04.jpg); ">&nbsp;</td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td height="133" style="background:url(images/login05.jpg)">&nbsp;</td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
</table>
</form>
</sms:pageLoading>
</body>
</html>